const router = require('express').Router();
const searchService = require('../services/search.js');

router.get('/goods/list', async (req, res) => {
  const { searchlist } = req.query;
  const results = await searchService.getSearchDetail(searchlist);
  res.status(200).send(results)
})

module.exports = router;
